package com.suda.service;

import com.github.pagehelper.PageInfo;
import com.suda.pojo.Warehouse;

import java.util.List;

/****
 * @Author:zhuyongjie
 * @Description:Warehouse业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface WarehouseService {

    /***
     * Warehouse多条件分页查询
     * @param warehouse
     * @param page
     * @param size
     * @return
     */
    PageInfo<Warehouse> findPage(Warehouse warehouse, int page, int size);

    /***
     * Warehouse分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Warehouse> findPage(int page, int size);

    /***
     * Warehouse多条件搜索方法
     * @param warehouse
     * @return
     */
    List<Warehouse> findList(Warehouse warehouse);

    /***
     * 删除Warehouse
     * @param id
     */
    void delete(String id);

    /***
     * 修改Warehouse数据
     * @param warehouse
     */
    void update(Warehouse warehouse);

    /***
     * 新增Warehouse
     * @param warehouse
     */
    void add(Warehouse warehouse);

    /**
     * 根据ID查询Warehouse
     * @param id
     * @return
     */
     Warehouse findById(String id);

    /***
     * 查询所有Warehouse
     * @return
     */
    List<Warehouse> findAll();
}
